Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

⬆️ Bump astro from 3.5.5 to 4.2.1 #199

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 18, 2024

Bumps astro from 3.5.5 to 4.2.1.

Release notes

Sourced from astro's releases.

[email protected]

Patch Changes

[email protected]

Minor Changes

  • #9566 165cfc154be477337037185c32b308616d1ed6fa Thanks @​OliverSpeir! - Allows remark plugins to pass options specifying how images in .md files will be optimized

  • #9661 d6edc7540864cf5d294d7b881eb886a3804f6d05 Thanks @​ematipico! - Adds new helper functions for adapter developers.

    • Astro.clientAddress can now be passed directly to the app.render() method.
    const response = await app.render(request, { clientAddress: '012.123.23.3' });
    • Helper functions for converting Node.js HTTP request and response objects to web-compatible Request and Response objects are now provided as static methods on the NodeApp class.
    http.createServer((nodeReq, nodeRes) => {
      const request: Request = NodeApp.createRequest(nodeReq);
      const response = await app.render(request);
      await NodeApp.writeResponse(response, nodeRes);
    });
    • Cookies added via Astro.cookies.set() can now be automatically added to the Response object by passing the addCookieHeader option to app.render().
    -const response = await app.render(request)
    -const setCookieHeaders: Array<string> = Array.from(app.setCookieHeaders(webResponse));
    -if (setCookieHeaders.length) {
    
    for (const setCookieHeader of setCookieHeaders) {
    
       headers.append('set-cookie', setCookieHeader);
    
    
    }
    -}
    +const response = await app.render(request, { addCookieHeader: true })
  • #9638 f1a61268061b8834f39a9b38bca043ae41caed04 Thanks @​ematipico! - Adds a new i18n.routing config option redirectToDefaultLocale to disable automatic redirects of the root URL (/) to the default locale when prefixDefaultLocale: true is set.

    In projects where every route, including the default locale, is prefixed with /[locale]/ path, this property allows you to control whether or not src/pages/index.astro should automatically redirect your site visitors from / to /[defaultLocale].

    You can now opt out of this automatic redirection by setting redirectToDefaultLocale: false:

    // astro.config.mjs
  • ... (truncated)

    Changelog

    Sourced from astro's changelog.

    4.2.1

    Patch Changes

    4.2.0

    Minor Changes

    • #9566 165cfc154be477337037185c32b308616d1ed6fa Thanks @​OliverSpeir! - Allows remark plugins to pass options specifying how images in .md files will be optimized

    • #9661 d6edc7540864cf5d294d7b881eb886a3804f6d05 Thanks @​ematipico! - Adds new helper functions for adapter developers.

      • Astro.clientAddress can now be passed directly to the app.render() method.
      const response = await app.render(request, { clientAddress: '012.123.23.3' });
      • Helper functions for converting Node.js HTTP request and response objects to web-compatible Request and Response objects are now provided as static methods on the NodeApp class.
      http.createServer((nodeReq, nodeRes) => {
        const request: Request = NodeApp.createRequest(nodeReq);
        const response = await app.render(request);
        await NodeApp.writeResponse(response, nodeRes);
      });
      • Cookies added via Astro.cookies.set() can now be automatically added to the Response object by passing the addCookieHeader option to app.render().
      -const response = await app.render(request)
      -const setCookieHeaders: Array<string> = Array.from(app.setCookieHeaders(webResponse));
      -if (setCookieHeaders.length) {
      
      for (const setCookieHeader of setCookieHeaders) {
      
         headers.append('set-cookie', setCookieHeader);
      
      
      }
      -}
      +const response = await app.render(request, { addCookieHeader: true })
  • #9638 f1a61268061b8834f39a9b38bca043ae41caed04 Thanks @​ematipico! - Adds a new i18n.routing config option redirectToDefaultLocale to disable automatic redirects of the root URL (/) to the default locale when prefixDefaultLocale: true is set.

    In projects where every route, including the default locale, is prefixed with /[locale]/ path, this property allows you to control whether or not src/pages/index.astro should automatically redirect your site visitors from / to /[defaultLocale].

    You can now opt out of this automatic redirection by setting redirectToDefaultLocale: false:

  • ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 3.5.5 to 4.2.1.
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)
    
    ---
    updated-dependencies:
    - dependency-name: astro
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Copy link

    netlify bot commented Jan 18, 2024

    Deploy Preview for pukima ready!

    Name Link
    🔨 Latest commit dafc618
    🔍 Latest deploy log https://app.netlify.com/sites/pukima/deploys/65a968cf73c3ba0007ea96eb
    😎 Deploy Preview https://deploy-preview-199--pukima.netlify.app
    📱 Preview on mobile
    Toggle QR Code...

    QR Code

    Use your smartphone camera to open QR code link.
    Lighthouse
    Lighthouse
    1 paths audited
    Performance: 99
    Accessibility: 100
    Best Practices: 92
    SEO: 93
    PWA: -
    View the detailed breakdown and full score reports

    To edit notification comments on pull requests, go to your Netlify site configuration.

    Copy link
    Contributor Author

    dependabot bot commented on behalf of github Jan 23, 2024

    Superseded by #201.

    @dependabot dependabot bot closed this Jan 23, 2024
    @dependabot dependabot bot deleted the dependabot/npm_and_yarn/astro-4.2.1 branch January 23, 2024 18:40
    Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    0 participants